var strArray = location.search;
orderId = strArray.split("?")[1].split("=")[1];


var newTime = timeAll();

// 查看预估计接口调用
function ajaxText() {
    var timeStamp = "timeStamp:" + newTime + "BM" + "orderIds:" + orderId + "BM" ;
    var signs = md5(timeStamp);
    signs = signs.toUpperCase();

    $.ajax({
        type: "post",
        url: webUrl + "paltformTransaction/getBatcheToUpstreamResult",
        data: {
            "timeStamp": newTime,
            "orderIds": orderId,
            "sign": signs,
        },
        dataType: "JSON",
        async: false,
        success: function (data) {
            if (data.status == 200) {
                $("#orderMoney").html("￥"+data.data.total+"元");
                $("#nameStrAndTel").html(data.data.expressAddressDto.name+'&nbsp;'+data.data.expressAddressDto.telephone);
                $("#adressStr").html(data.data.expressAddressDto.city+data.data.expressAddressDto.address)
            } else if (data.status == 300) {
                document.location.href = '../../html/login.html';
            } else if (data.status == 500) {
                dialog(data.msg);
            }else {
                dialog(data.msg);
            }
        },
        error: function (data) {
            //弹出报错内容　　
            dialog("服务器异常")
        }
    })
}


// 我知道了

function IKnow() {
    javascript:window.history.go(-5);
}
